import request from '@/utils/request'

export default{
    
    //添加小节
    addVideo(video){
        return request({
            url:`/eduservice/video`,
            method:'post',
            data:video
        })
    },
    
    //删除小节
    deleteVideo(videoId){
        return request({
            url:`/eduservice/video/${videoId}`,
            method:'delete'
        })
    },

    //查询小节
    getVideo(videoId){
        return request({
            url:`/eduservice/video/${videoId}`,
            method:'get'
        })
    },

    //修改章节
    updateVideo(video){
        return request({
            url:`/eduservice/video`,
            method:'put',
            data:video
        })
    },
}